package com.ai.study.dashscope.config;

import com.alibaba.cloud.ai.dashscope.embedding.DashScopeEmbeddingModel;
import org.springframework.ai.embedding.EmbeddingModel;
import org.springframework.ai.ollama.OllamaEmbeddingModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author chenwei
 * @Date 2025/5/27 16:47
 */
@Configuration
public class EmbeddingModelConfiguration {

    @Bean
    public EmbeddingModel dashScopeEmbeddingModel(DashScopeEmbeddingModel dashScopeEmbeddingModel) {
        return dashScopeEmbeddingModel;
    }
}
